package com.cs.contract.controller;

import com.cs.contract.service.CsSignService;
import com.cs.contract.domain.CsSign;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：zrx
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud
 * @name：CsSignController
 * @Date：2024/11/18 19:39
 * @Filename：CsSignController
 */
@RestController
@RequestMapping("/sign")
public class CsSignController extends BaseController {
    private final CsSignService csSignService;

    public CsSignController(CsSignService csSignService) {
        this.csSignService = csSignService;
    }

    @GetMapping("/list1")
    public TableDataInfo listCsSign(CsSign csSign) {
        startPage();
        List<CsSign> list = csSignService.listCsSign(csSign);
        return getDataTable(list);
    }
}
